#include <iostream>

using std::cout;
using std::endl;

//class与struct的区别有三点
//1、默认的访问权限private/public
//2、默认的继承方式，class是private，struct是public
//3、class可以放在模板参数中，与typename是等价

/* class Base */
struct Base
{
public:
    void print()
    {}
};

struct Derived
:  Base
{
};

void test()
{
    Derived d;
    d.print();
}

int main(int argc, char *argv[])
{
    test();
    return 0;
}

